package priv.dajie.tzzq.bot.exception;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class BuyException extends Exception{
    private JSONObject json;

    public BuyException() {
    }

    public BuyException(String message, JSONObject json) {
        super(message);
        this.json = json;
    }

    public BuyException(String message) {
        super(message);
    }

    public BuyException(String message, Throwable cause) {
        super(message, cause);
    }

    public BuyException(Throwable cause) {
        super(cause);
    }

    public BuyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    @Override
    public void printStackTrace() {
        super.printStackTrace();
        System.out.println(json);
    }
}
